package com.student;

public class Student {
    private String name;
    private int age;
    private teach teacher;

    public Student(String name, teach teacher, int age) {
        this.name = name;
        this.teacher = teacher;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public teach getTeacher() {
        return teacher;
    }

    public void setTeacher(teach teacher) {
        this.teacher = teacher;
    }
}
